home *** CD-ROM | disk | FTP | other *** search
- /* Configuration for GNU C-compiler for Motorola 68000 family.
- Copyright (C) 1987 Free Software Foundation, Inc.
-
- This file is part of GNU CC.
-
- GNU CC is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- GNU CC is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with GNU CC; see the file COPYING. If not, write to
- the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
-
- #ifndef MPW
- #define MPW
- #endif
-
- /* This is for generic improvements to GCC. */
-
- #define APPLE_HAX
-
- /* This tweaks the preprocessor to like double slash as a comment. */
-
- #define CPLUSPLUS
-
- /* #defines that need visibility everywhere. */
- #define FALSE 0
- #define TRUE 1
-
- /* This describes the machine the compiler is hosted on. */
- #define HOST_BITS_PER_CHAR 8
- #define HOST_BITS_PER_SHORT 16
- #define HOST_BITS_PER_INT 32
- #define HOST_BITS_PER_LONG 32
- #define HOST_BITS_PER_LONGLONG 64
-
- #define HOST_WORDS_BIG_ENDIAN
-
- #ifdef MPW_C
- #define ONLY_INT_FIELDS
- #endif
-
- #include <Errors.h>
-
- /* target machine dependencies.
- tm.h is a symbolic link to the actual target specific file. */
- #include "tm.h"
-
- /* Arguments to use with `exit'. */
- #define SUCCESS_EXIT_CODE 0
- #define FATAL_EXIT_CODE 33
-
- /* If compiled with GNU C, use the built-in alloca */
- #ifdef __GNUC__
- /* Use an arg in this macro because that's what some other
- system does--let's avoid conflict. */
- #define alloca(x) __builtin_alloca(x)
- #endif
-
- /* MPW-specific hacks. */
-
- /* MPW C doesn't know about alloca. */
- #ifndef __GNUC__
- #define USE_C_ALLOCA
- #endif
-
- /* Pick up the cursor-spinning magic. */
- #include <CursorCtl.h>
-
- /* Assorted redefinitions, from BSD-like to SysV/ANSI-like. */
- #define bzero(a,b) memset(a,0,b)
- #define bcopy(a,b,c) memcpy(b,a,c)
- #define bcmp(a,b,c) memcmp(a,b,c)
- #define index strchr
- #define rindex strrchr
-
- /* Fancy abort is a little more informative. */
- #if 0
- #define abort() SysError(8005)
- #else
- #define abort fancy_abort
- #endif
-
- /* We want all newly created files to be type TEXT and creator 'MPS ', that is,
- MPW Shell docs that we can look at by double-clicking. */
-
- /* Crude, but simpler than trying to modify all the gen* programs. */
- #ifdef __STDIO__
- FILE *mpw_fopen();
- #endif
-
- #define fopen(a,b) mpw_fopen(a,b)
- #define SHORT_ENUM_BUG
-
- /* MPW uses a comma to separate the directories in a search path. */
-
- #define PATH_SEPARATOR ','
-